package com.pjh.shitang.entitys;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author yueyinghaibao
 * @date 2022/5/6
 */
@TableName("db_reply")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Reply extends ContentDetails{
    @TableId("rid")
    Integer rid;
    String froms;
    Integer tos;

    public Reply(String froms, Integer tos, Date date, String content) {
        setFroms(froms);
        setTos(tos);
        setDate(date);
        setContent(content);
        setLikes(0);
    }
}
